<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>Cheetah Software: rt_interface_lcm.h Source File</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../navtreedata.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Cheetah Software
   &#160;<span id="projectnumber">1.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="../../index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="../../namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="../../annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="../../files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="../../search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="../../search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="../../files.html"><span>File&#160;List</span></a></li>
      <li><a href="../../globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('d4/dd2/rt__interface__lcm_8h_source.html','../../');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">rt_interface_lcm.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="../../d4/dd2/rt__interface__lcm_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="preprocessor">#ifndef _RT_INTERFACE_LCM</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor">#define _RT_INTERFACE_LCM</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;</div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#include &lt;lcm/lcm-cpp.hpp&gt;</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="keyword">class </span>gui_main_control_settings_t;</div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="keyword">class </span>rc_channels_t;</div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;</div><div class="line"><a name="l00013"></a><span class="lineno"><a class="line" href="../../d2/d01/class_handler.html">   13</a></span>&#160;<span class="keyword">class </span><a class="code" href="../../d2/d01/class_handler.html">Handler</a> {</div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;  <span class="keywordtype">void</span> <a class="code" href="../../d2/d01/class_handler.html#a859908bca1e073bc2a874c89641a1cd5">main_control_settings_handler</a>(<span class="keyword">const</span> lcm::ReceiveBuffer* rbuf,</div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;                                     <span class="keyword">const</span> std::string&amp; channel,</div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;                                     <span class="keyword">const</span> gui_main_control_settings_t* msg);</div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;</div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;  <span class="keywordtype">void</span> <a class="code" href="../../d2/d01/class_handler.html#a3dbe093443dd23a6f69e46548452b4cf">rc_channels_handler</a>(<span class="keyword">const</span> lcm::ReceiveBuffer* rbuf,</div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;                           <span class="keyword">const</span> std::string&amp; channel,</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;                           <span class="keyword">const</span> rc_channels_t* msg);</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;};</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="keywordtype">void</span> <a class="code" href="../../d4/dd2/rt__interface__lcm_8h.html#a3f348fdbac738fe554e4543dee262081">sbus_packet_complete</a>();</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="keywordtype">void</span> <a class="code" href="../../d4/dd2/rt__interface__lcm_8h.html#a23e01b5e8251dbbb1d21f2ab27a5031b">get_main_control_settings</a>(<span class="keywordtype">void</span>* settings);</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="keywordtype">int</span> <a class="code" href="../../d4/dd2/rt__interface__lcm_8h.html#a552c1839ba79498765058c69b3556a49">get_iterations_since_last_lcm</a>();</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="keywordtype">void</span> <a class="code" href="../../d4/dd2/rt__interface__lcm_8h.html#a14e98af13e7121b02719cbc7195dea82">get_rc_channels</a>(<span class="keywordtype">void</span>* settings);</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="keywordtype">void</span> <a class="code" href="../../d4/dd2/rt__interface__lcm_8h.html#a23857b25ac0abcaea372b7fd3cedc04d">init_interface_lcm</a>(lcm::LCM* main_lcm);</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="keywordtype">void</span> <a class="code" href="../../d4/dd2/rt__interface__lcm_8h.html#a81c3c7997bc89e85420b385e175f6bef">control_iteration_lcm</a>();</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="keywordtype">void</span>* <a class="code" href="../../d4/dd2/rt__interface__lcm_8h.html#aa5f4c06b7720f635aed7bf1462fa4465">v_memcpy</a>(<span class="keywordtype">void</span>* dest, <span class="keyword">volatile</span> <span class="keywordtype">void</span>* src, <span class="keywordtype">size_t</span> n);</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="preprocessor">#endif</span></div><div class="ttc" id="class_handler_html_a859908bca1e073bc2a874c89641a1cd5"><div class="ttname"><a href="../../d2/d01/class_handler.html#a859908bca1e073bc2a874c89641a1cd5">Handler::main_control_settings_handler</a></div><div class="ttdeci">void main_control_settings_handler(const lcm::ReceiveBuffer *rbuf, const std::string &amp;channel, const gui_main_control_settings_t *msg)</div><div class="ttdoc">Handler for main control settings from MATLAB interface. Never call this yourself, leave it to LCM. </div><div class="ttdef"><b>Definition:</b> <a href="../../dd/df1/rt__interface__lcm_8cpp_source.html#l00040">rt_interface_lcm.cpp:40</a></div></div>
<div class="ttc" id="rt__interface__lcm_8h_html_a552c1839ba79498765058c69b3556a49"><div class="ttname"><a href="../../d4/dd2/rt__interface__lcm_8h.html#a552c1839ba79498765058c69b3556a49">get_iterations_since_last_lcm</a></div><div class="ttdeci">int get_iterations_since_last_lcm()</div><div class="ttdoc">Gets the iterations since the last lcm. </div><div class="ttdef"><b>Definition:</b> <a href="../../dd/df1/rt__interface__lcm_8cpp_source.html#l00025">rt_interface_lcm.cpp:25</a></div></div>
<div class="ttc" id="rt__interface__lcm_8h_html_a3f348fdbac738fe554e4543dee262081"><div class="ttname"><a href="../../d4/dd2/rt__interface__lcm_8h.html#a3f348fdbac738fe554e4543dee262081">sbus_packet_complete</a></div><div class="ttdeci">void sbus_packet_complete()</div><div class="ttdoc">Function which handles the completion of an SBUS Packet and overrides the LCM control settings as des...</div><div class="ttdef"><b>Definition:</b> <a href="../../dd/df1/rt__interface__lcm_8cpp_source.html#l00078">rt_interface_lcm.cpp:78</a></div></div>
<div class="ttc" id="rt__interface__lcm_8h_html_a81c3c7997bc89e85420b385e175f6bef"><div class="ttname"><a href="../../d4/dd2/rt__interface__lcm_8h.html#a81c3c7997bc89e85420b385e175f6bef">control_iteration_lcm</a></div><div class="ttdeci">void control_iteration_lcm()</div><div class="ttdoc">Increments the number of control iterations since the last LCM packet. </div><div class="ttdef"><b>Definition:</b> <a href="../../dd/df1/rt__interface__lcm_8cpp_source.html#l00018">rt_interface_lcm.cpp:18</a></div></div>
<div class="ttc" id="rt__interface__lcm_8h_html_a14e98af13e7121b02719cbc7195dea82"><div class="ttname"><a href="../../d4/dd2/rt__interface__lcm_8h.html#a14e98af13e7121b02719cbc7195dea82">get_rc_channels</a></div><div class="ttdeci">void get_rc_channels(void *settings)</div><div class="ttdef"><b>Definition:</b> <a href="../../dd/df1/rt__interface__lcm_8cpp_source.html#l00068">rt_interface_lcm.cpp:68</a></div></div>
<div class="ttc" id="class_handler_html"><div class="ttname"><a href="../../d2/d01/class_handler.html">Handler</a></div><div class="ttdef"><b>Definition:</b> <a href="../../d4/dd2/rt__interface__lcm_8h_source.html#l00013">rt_interface_lcm.h:13</a></div></div>
<div class="ttc" id="rt__interface__lcm_8h_html_a23857b25ac0abcaea372b7fd3cedc04d"><div class="ttname"><a href="../../d4/dd2/rt__interface__lcm_8h.html#a23857b25ac0abcaea372b7fd3cedc04d">init_interface_lcm</a></div><div class="ttdeci">void init_interface_lcm(lcm::LCM *main_lcm)</div><div class="ttdoc">Initializer for all handlers related to the interface LCM streams. </div><div class="ttdef"><b>Definition:</b> <a href="../../dd/df1/rt__interface__lcm_8cpp_source.html#l00172">rt_interface_lcm.cpp:172</a></div></div>
<div class="ttc" id="class_handler_html_a3dbe093443dd23a6f69e46548452b4cf"><div class="ttname"><a href="../../d2/d01/class_handler.html#a3dbe093443dd23a6f69e46548452b4cf">Handler::rc_channels_handler</a></div><div class="ttdeci">void rc_channels_handler(const lcm::ReceiveBuffer *rbuf, const std::string &amp;channel, const rc_channels_t *msg)</div><div class="ttdef"><b>Definition:</b> <a href="../../dd/df1/rt__interface__lcm_8cpp_source.html#l00052">rt_interface_lcm.cpp:52</a></div></div>
<div class="ttc" id="rt__interface__lcm_8h_html_aa5f4c06b7720f635aed7bf1462fa4465"><div class="ttname"><a href="../../d4/dd2/rt__interface__lcm_8h.html#aa5f4c06b7720f635aed7bf1462fa4465">v_memcpy</a></div><div class="ttdeci">void * v_memcpy(void *dest, volatile void *src, size_t n)</div><div class="ttdef"><b>Definition:</b> <a href="../../dd/df1/rt__interface__lcm_8cpp_source.html#l00191">rt_interface_lcm.cpp:191</a></div></div>
<div class="ttc" id="rt__interface__lcm_8h_html_a23e01b5e8251dbbb1d21f2ab27a5031b"><div class="ttname"><a href="../../d4/dd2/rt__interface__lcm_8h.html#a23e01b5e8251dbbb1d21f2ab27a5031b">get_main_control_settings</a></div><div class="ttdeci">void get_main_control_settings(void *settings)</div><div class="ttdef"><b>Definition:</b> <a href="../../dd/df1/rt__interface__lcm_8cpp_source.html#l00062">rt_interface_lcm.cpp:62</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="../../dir_43e0a1f539e00dcfa1a6bc4d4fee4fc2.html">home</a></li><li class="navelem"><a class="el" href="../../dir_61bfb0b3cdda81b1b0355ba34eb3b1eb.html">dhkim</a></li><li class="navelem"><a class="el" href="../../dir_adee5b101e079090017bb4e91c628ead.html">Public_Repository</a></li><li class="navelem"><a class="el" href="../../dir_7fc07a7b97001e7b1d18e11da761e2de.html">Cheetah-Software</a></li><li class="navelem"><a class="el" href="../../dir_e69772fee2c25f3f3a3da98250dcdda2.html">robot</a></li><li class="navelem"><a class="el" href="../../dir_20818e807e73f5841d8cf65b57c69c9c.html">include</a></li><li class="navelem"><a class="el" href="../../dir_6844cdb0195786a1ce825e66a22893fa.html">rt</a></li><li class="navelem"><a class="el" href="../../d4/dd2/rt__interface__lcm_8h.html">rt_interface_lcm.h</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.8.11 </li>
  </ul>
</div>
</body>
</html>
